package com.xmtlxx.system.mapper;

import com.xmtlxx.common.core.domain.entity.SysModel;
import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmtlxx.system.domain.bo.SysModelBo;
import com.xmtlxx.system.domain.vo.SysModelVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务模型Mapper接口
 *
 * @author xmtlxx
 * @date 2022-04-24
 */
public interface SysModelMapper extends BaseMapperPlus<SysModelMapper, SysModel, SysModelVo> {
    /**
     * 根据条件分页查询业务模型
     *
     * @param sysModelBo 业务模型
     * @return Page SysModel
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "s.create_by"),
//        @DataColumn(key = "deptName", value = "s.create_by"),
//        @DataColumn(key = "userName", value = "s.create_by")
//    })
    Page<SysModelVo> selectPageSysModelList(@Param("page") Page<SysModel> page,@Param("sysModel") SysModelBo sysModel);

    /**
     * 查询业务模型列表
     *
     * @param sysModelBo 业务模型
     * @return 业务模型集合
     */
//    @DataPermission({
//        @DataColumn(key = "tenantName", value = "s.create_by"),
//        @DataColumn(key = "deptName", value = "s.create_by"),
//        @DataColumn(key = "userName", value = "s.create_by")
//    })
    List<SysModelVo> selectSysModelList(@Param("sysModel") SysModelBo sysModel);

}
